package com.pkk.spring.cloud.service.rpc.request;

import java.io.Serializable;
import javax.validation.Valid;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 请求参数
 *
 * @author peikunkun
 * @version V1.0
 * @date 2021-01-06 14:17
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RequestBody<T> implements Serializable {

  private static final long serialVersionUID = 7344892459395248850L;


  /**
   * 请求头部
   */
  private RequestHeader header;

  /**
   * 请求参数实体
   */
  @Valid
  private T body;

}
